package com.muyu.system.mapper;

import java.util.List;

import com.muyu.danmo.domain.DanmoAddresses;
import com.muyu.system.domain.DanmoShoppingOrderDetails;
import org.apache.ibatis.annotations.Param;

/**
 * 订单详情Mapper接口
 * 
 * @author yangle
 * @date 2024-09-29
 */
public interface DanmoShoppingOrderDetailsMapper 
{
    /**
     * 查询订单详情
     * 
     * @param id 订单详情主键
     * @return 订单详情
     */
    public DanmoShoppingOrderDetails selectDanmoShoppingOrderDetailsById(Long id);

    /**
     * 查询订单详情列表
     * 
     * @param danmoShoppingOrderDetails 订单详情
     * @return 订单详情集合
     */
    public List<DanmoShoppingOrderDetails> selectDanmoShoppingOrderDetailsList(DanmoShoppingOrderDetails danmoShoppingOrderDetails);

    /**
     * 新增订单详情
     * 
     * @param danmoShoppingOrderDetails 订单详情
     * @return 结果
     */
    public int insertDanmoShoppingOrderDetails(DanmoShoppingOrderDetails danmoShoppingOrderDetails);

    /**
     * 修改订单详情
     * 
     * @param danmoShoppingOrderDetails 订单详情
     * @return 结果
     */
    public int updateDanmoShoppingOrderDetails(DanmoShoppingOrderDetails danmoShoppingOrderDetails);

    /**
     * 删除订单详情
     * 
     * @param id 订单详情主键
     * @return 结果
     */
    public int deleteDanmoShoppingOrderDetailsById(Long id);

    /**
     * 批量删除订单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoShoppingOrderDetailsByIds(Long[] ids);

    /**
     * 根据用户id查询地址
     * @param userId
     * @return
     */
    DanmoAddresses selectByAddress(@Param("userId") Long userId);

    /**
     * 根据地址id查询地址
     * @param shippingAddress
     * @return
     */
    DanmoAddresses selectDanmoAddressesById(@Param("shippingAddress") Long shippingAddress);
}
